from django.urls import path
from . import views

urlpatterns = [

    #GET  房屋搜索/添加 /api/v1.0/houses
    path('api/v1.0/houses', views.AddHousesView.as_view()),

    # http.www.renthouse.site:8000/api/v1.0/houses/[int:house_id]/images
    path('api/v1.0/houses/<int:house_id>/images', views.PushImagesView.as_view()),

    # GET /api/v1.0/houses/index
    path('api/v1.0/houses/index', views.HousesIndex.as_view()),

    # GET api/v1.0/houses/[int:house_id]
    path('api/v1.0/houses/<int:house_id>', views.HouseDetils.as_view()),

    # 城区
    path('api/v1.0/areas', views.AreasView.as_view()),

    #我的房源
    path('api/v1.0/user/houses',views.MyHouseList.as_view()),

    # 实名认证判断api/v1.0/user/auth
    # path('api/v1.0/user/auth', views.AuthUserCardView.as_view()),


]
